{% extends "AdminSalarySysMenu/MainMain.html" %}
{% load staticfiles %}
{% block bodyhead %}
<body class="hold-transition skin-green-light sidebar-mini" onload="initPage()">

  {% endblock %}
{% block AdminShow %}
<li class="treeview active">
  <a href="#">
    <i class="fa fa fa-mouse-pointer"></i>
    <span> 申报审批</span>
    <span class="pull-right-container">
      <i class="fa fa-angle-right pull-right"></i>
    </span>
  </a>
  <ul class="treeview-menu">
      <li><a href="{% url 'GZGL:AdminShowReportWorking' %}"><i class="fa fa fa-circle-thin"></i> 业绩申报审核</a></li>
      <li><a href="{% url 'GZGL:AdminShowReportSalary' %}"><i class="fa fa fa-circle-thin"></i> 工资申报审核</a></li>
      <li class="active"><a href="{% url 'GZGL:AdminShowReportSign' %}"><i class="fa fa fa-circle-thin"></i> 考勤申报审核</a></li>
      <li><a href="{% url 'GZGL:AdminShowReportOther' %}"><i class="fa fa fa-circle-thin"></i> 其他申报审核</a></li>

  </ul>
</li>
{% endblock %}
{% block content %}
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
      <!-- Content Header (Page header) -->
      <section class="content-header">
        <h1>
          考勤申报审批
          <small>考勤申报单</small>
        </h1>
        <ol class="breadcrumb">
          <li><a href="#"><i class="fa fa-dashboard"></i> Level</a></li>
          <li class="active">Here</li>
        </ol>
  
      </section>
  
      <!-- Main content -->
      <section class="content container-fluid">
  
          <div class="box">
              <div class="box-header">
                <h3 class="box-title">考勤申报单</h3>
              </div>
              <!-- /.box-header -->
              <div class="box-body">
                <table id="example1" class="table table-bordered table-striped">
                  <thead>
                  <tr>
                    <th>申报代码</th>
                    <th>业务名称</th>
                    <th>状   态</th>
                    <th>提交日期</th>
                    <th>业务类型</th>
                    <th>员工姓名</th>
                    <th>员工 ID</th>
                    
                    <th>详   情</th>
          
                  </tr>
                  </thead>
                  {% for UnCheckSIlist in UnCheckSIlist %} 
                
                    <tbody>
                    <tr>
                      <td>{{UnCheckSIlist.id}}</td>                                    
                      <td>{{UnCheckSIlist.ReportSign_name}}</td>
                      <td><label class="control-label" style="color: #f39c12;" >
                            <i class="fa fa-warning"></i> 待批复 </label> </td>
                      <td>{{UnCheckSIlist.Report_Time}}</td>
                      <td>{{UnCheckSIlist.ReportSign_type}}</td>
                      <td>{{UnCheckSIlist.ReportSign_Manname}}</td>
                      <td>{{UnCheckSIlist.ReportSign_id}}</td>
          
                      <td>
                          <form action="{% url 'GZGL:CheckingReportSign' %}" method="POST">
                              {% csrf_token %}
                          <input type="hidden" name="idd" class="form-control"  value="{{UnCheckSIlist.id}}" >
                          <button type="submit" class="btn btn-block btn-primary btn-sm ">查看</button>
                          </form>
          
                      </td>
                    </tr>
                    </tbody>
                    {% empty %}
          
                     <td></td>
                     <td></td>
                     <td></td>
                     <td></td>
                     <td></td>
                     <td></td>
                  <td><label class="control-label" style="color: #dd4b39; text-align: center;" >
                  <i class="fa fa-times"></i> 抱歉，目前尚未有待审批的申报单！</label></td>
                  <td></td>
                  {% endfor %} 
                  <tfoot>
                    <tr>
                        <th>申报代码</th>
                        <th>业务名称</th>
                        <th>状   态</th>
                        <th>提交日期</th>
                        <th>业务类型</th>
                        <th>员工姓名</th>
                        <th>员工 ID</th>
                       
                        <th>详   情</th>
                    </tr>
                  </tfoot>
                </table>
              </div>
              <!-- /.box-body -->
            </div>
  
            
      </section>
      <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

  {% endblock %}